import 'base_model.dart';

/// 章节目录信息
///
class ChapterCatalogModel extends BaseModel {
  String chapterName; // 名称
  int chapterId; // 数字id
  String chapterNewId; // 字符串id

  ChapterCatalogModel.fromJson(Map<String, dynamic> data)
      : super.fromJson(data) {
    chapterName = data["chapter_name"];
    chapterId = data["chapter_id"];
    chapterNewId = data["chapter_newid"];
  }

  @override
  Map<String, dynamic> toJson() {
    return {
      'chapterName': chapterName,
      'chapterId': chapterId,
      'chapterNewId': chapterNewId
    };
  }
}
